<template>
  <div>
    <van-cell-group inset>
      <van-cell :title="item.name" v-for="(item,index) in majorList" :key="index">
        <template #default>
          <van-tag v-if="item.categoryName === '专硕'" type="primary">{{ item.categoryName }}</van-tag>
          <van-tag v-else color="orange">{{ item.categoryName }}</van-tag>
        </template>
      </van-cell>
    </van-cell-group>
  </div>
</template>

<script>
export default {
  name: "UniversityMajor",
  props:['majorList'],
}
</script>

<style scoped>

</style>